var gridList;
var key ;
$(document).ready(function() {
    gridList=mini.get("gridList");
    init_Data();
});

function init_Data(){
	gridList.load();
}
function search() {
    var key = mini.get("key").getValue();
    gridList.load({'sysPortalModule.key':key});
}

function onKeyEnter(e) {
    search();
}

function saveData(){
    var rows=gridList.getSelecteds();
    if(rows.length>0){
        window.CloseOwnerWindow(rows);
    }else{
        mini.alert("请勾选！");
    }
}


